How to // Comment
Correct 504 Gateway Timeout // Corriger 504 Gateway Timeout

Ubuntu

[Ubuntu] Correct 504 Gateway Timeout



1. Edit the php.ini file
Do a phpinfo() to know where and what is your php.ini file
Open the file
  • sudo nano /etc/php/7.4/fpm/php.ini
Check that the following lines exist, otherwise add them:
  • max_execution_time = 300
  • request_terminate_timeout = 300
2. Edit the nginx.conf file
Open the file
  • sudo nano /etc/nginx/nginx.conf
Check that the following lines are identical, otherwise modify them:
  • fastcgi_read_timeout 300;


How to

[How to] Corriger 504 Gateway Timeout



1. Modifier le fichier php.ini
Faite un phpinfo() pour savoir ou et quel est votre votre fichier php.ini
Ouvrez le fichier
  • sudo nano /etc/php/7.4/fpm/php.ini
Vérifier que les lignes suivantes existent, sinon rajoutez les :
  • max_execution_time = 300
  • request_terminate_timeout = 300
2. Modifier le fichier nginx.conf
Ouvrez le fichier
  • sudo nano /etc/nginx/nginx.conf
Vérifier que les lignes suivantes sont identiques, sinon modifiez les :
  • fastcgi_read_timeout 300;